#!/usr/bin/env bash

. scripts/update_ver.sh

gulp defaultReal
#ionic state reset
echo 恢复插件成功
ionic prepare
ionic build --release android
cp platforms/android/build/outputs/apk/android-release-unsigned.apk test-$VERSION.apk
echo 移动目标文件完成
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore test-$VERSION.apk alias_name
